From: Moritz Oberhauser Date: Sat, 27 May 2017 11:20:35 +0000 (+0200) Subject: Making the default toggle look clickable again X-Git-Tag: 1.31.0-rc.0~3107^2 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=91edf9c398af4b87993ae4513bd66138626aee28;p=lhc%2Fweb%2Fwiklou.git Making the default toggle look clickable again The toggle should now look same same prior to the premade toggle changes. The brackets are not part of the link, but the text inbetween. The link has no href property, so the toggle action is still triggered. Bug: T166359 Change-Id: I38698cd66d380626728eae9b8a9da1e465b207a6 --- diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js index ac4a3926ac..5ce9b1f9bc 100644 --- a/resources/src/jquery/jquery.makeCollapsible.js +++ b/resources/src/jquery/jquery.makeCollapsible.js @@ -262,7 +262,7 @@ // Default toggle link. Only build it when needed to avoid jQuery memory leaks (event data). buildDefaultToggleLink = function () { - return $( '' ) + return $( '' ) .text( collapseText ) .wrap( '' ).parent() .attr( {